package com.ly.common.running.config;

import com.ly.common.running.model.BaseInOut;

/**
 * @author luoyana
 * @version V1.0
 * @ClassName Context
 * @description 上下文
 * @update 2022/12/24
 */
public class Context extends BaseInOut {
    static ThreadLocal threadLocal = new ThreadLocal();
    public static void set(Context context){
        threadLocal.set(context);
    }
    public static void unSet(){
        threadLocal.remove();
    }
    public static Context get(){
        return (Context)threadLocal.get();
    }
}
